package command

import (
	"fmt"
	"image/color"
)

type tMockGraphics struct {
	color color.Color
}

func newMockGraphics() IGraphics {
	return &tMockGraphics{
	}
}

func (me *tMockGraphics) Clear() {
	fmt.Printf("\ntMockGraphics.Clear\n")
}

func (me *tMockGraphics) Color(color color.Color) {
	me.color = color
	r,g,b,a := color.RGBA()
	fmt.Printf("tMockGraphics.Color, (%v,%v,%v,%v)\n", r, g, b, a)
}

func (me *tMockGraphics) DrawDot(x int, y int) {
	fmt.Printf("tMockGraphics.DrawDot, (%v,%v)\n", x, y)
}

func (me *tMockGraphics) DrawLine(x0 int, y0 int, x1 int , y1 int) {
	fmt.Printf("tMockGraphics.DrawLine, (%v,%v) -> (%v,%v)\n", x0, y0, x1, y1)
}